package com.akaovi.noodle;

/**
 * @author akaovi
 * @version 1.0
 * @description
 * @date 2022/10/17 14:04
 * @since 2022/10/17 14:04
 */
public class Noodle {
    private String name;
    private int Weight;
    private boolean soup;

    public Noodle() {
        soup = false;
    }

    public Noodle(String name) {
        this();
        this.name = name;
    }

    public Noodle(String name, int weight) {
        this(name);
        Weight = weight;
    }

    public Noodle(String name, int weight, boolean soup) {
        this(name, weight);
        this.soup = soup;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getWeight() {
        return Weight;
    }

    public void setWeight(int weight) {
        Weight = weight;
    }

    public boolean isSoup() {
        return soup;
    }

    public void setSoup(boolean soup) {
        this.soup = soup;
    }

    @Override
    public String toString() {
        return String.format("面的种类：%s\n分量：%d两\n%s", this.name, this.Weight, this.soup ? "带汤的" : "不带汤的");
    }
}
